From: Georges Basile Stavracas Neto Date: Thu, 16 Jul 2020 14:15:03 +0000 (-0300) Subject: appDisplay: Check 'app-picker-layout' to make icons draggable X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~684^2^2~113 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d04d6e069df16867779f50ca239c7f51a045bc77;p=gnome-shell.git appDisplay: Check 'app-picker-layout' to make icons draggable Now we drag not only to the Dash, but also to the icon grid itself, so make the app icon draggable only when either one or the other is writable. https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1284 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index a2ae129a4..dde351be2 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -843,7 +843,9 @@ class AppDisplay extends BaseAppView { // at least on single-monitor setups. // This also disables drag-to-launch on multi-monitor setups, // but we hope that is not used much. - let favoritesWritable = global.settings.is_writable('favorite-apps'); + const isDraggable = + global.settings.is_writable('favorite-apps') || + global.settings.is_writable('app-picker-layout'); apps.forEach(appId => { if (appsInsideFolders.has(appId)) @@ -853,9 +855,7 @@ class AppDisplay extends BaseAppView { if (!icon) { let app = appSys.lookup_app(appId); - icon = new AppIcon(app, { - isDraggable: favoritesWritable, - }); + icon = new AppIcon(app, { isDraggable }); } appIcons.push(icon);